package com.myzhouye.business.service.impl;/***
 *                    _ooOoo_
 *                   o8888888o
 *                   88" . "88
 *                   (| -_- |)
 *                    O\ = /O
 *                ____/`---'\____
 *              .   ' \\| |// `.
 *               / \\||| : |||// \
 *             / _||||| -:- |||||- \
 *               | | \\\ - /// | |
 *             | \_| ''\---/'' | |
 *              \ .-\__ `-` ___/-. /
 *           ___`. .' /--.--\ `. . __
 *        ."" '< `.___\_<|>_/___.' >'"".
 *       | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *         \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 *                    `=---='
 *
 * .............................................
 *          佛祖保佑             永无BUG
 */

import com.alibaba.fastjson.JSONObject;
import com.myzhouye.business.service.PushService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @program: maple-main
 * @description:
 * @author: 那条蠢鱼
 * @create: 2024-01-12 16:53
 **/
@Service
@Slf4j
public class PushServiceImpl implements PushService {
    @Override
    public String timerMsgInit(int second) {
        JSONObject json=new JSONObject();
        json.put("tag","Demo2Page");
        JSONObject info=new JSONObject();
        LocalDateTime sysNowTime=LocalDateTime.now();
        LocalDateTime targetTime = sysNowTime.plusSeconds(second);
        info.put("sysNowTime", sysNowTime);
        info.put("targetTime", targetTime);
        json.put("info",info);
        return json.toJSONString();
    }
}
